/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Page1project.java
 *
 * Created on Mar 16, 2011, 9:54:38 PM
 */

package GUIforms;

/**
 *
 * @author danielsl
 */
public class Page1Panel extends javax.swing.JPanel {

    /** Creates new form Page1project */
    public Page1Panel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        numberOfSessLabel = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        chosenUsersLabel = new javax.swing.JLabel();
        numberOfSessionsDropDown = new javax.swing.JComboBox();
        nextButton = new javax.swing.JButton();
        projectUsersLabel = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        projectDescTextArea = new javax.swing.JTextArea();
        projectLeaderDropDown = new javax.swing.JComboBox();
        jScrollPane4 = new javax.swing.JScrollPane();
        addedUsersList = new javax.swing.JList();
        projectLeaderLabel = new javax.swing.JLabel();
        addProjectUsersButton = new javax.swing.JButton();
        projectGoalLabel = new javax.swing.JLabel();
        removeUserButton = new javax.swing.JButton();
        projectNameTextField = new javax.swing.JTextField();
        projectDescriptionLabel = new javax.swing.JLabel();
        projectNameLabel = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        projectGoalTextArea = new javax.swing.JTextArea();

        numberOfSessLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        numberOfSessLabel.setText("Antall sesjoner:");

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);

        chosenUsersLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        chosenUsersLabel.setText("Valgte brukere:");

        numberOfSessionsDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Velg antall", "1", "2", "3", "4" }));

        nextButton.setText("Neste");
        nextButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nextButtonActionPerformed(evt);
            }
        });

        projectUsersLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        projectUsersLabel.setText("Brukere:");

        projectDescTextArea.setColumns(20);
        projectDescTextArea.setLineWrap(true);
        projectDescTextArea.setRows(5);
        projectDescTextArea.setWrapStyleWord(true);
        jScrollPane1.setViewportView(projectDescTextArea);

        projectLeaderDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Velg prosjektleder", "Bruker 1", "Bruker 2", "Bruker 3", "Bruker 4" }));

        addedUsersList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane4.setViewportView(addedUsersList);

        projectLeaderLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        projectLeaderLabel.setText("Prosjektleder:");

        addProjectUsersButton.setText("Legg til");

        projectGoalLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        projectGoalLabel.setText("Mål:");

        removeUserButton.setText("Fjern");

        projectDescriptionLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        projectDescriptionLabel.setText("Beskrivelse:");

        projectNameLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        projectNameLabel.setText("Navn:");

        projectGoalTextArea.setColumns(20);
        projectGoalTextArea.setLineWrap(true);
        projectGoalTextArea.setRows(5);
        projectGoalTextArea.setWrapStyleWord(true);
        jScrollPane2.setViewportView(projectGoalTextArea);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 478, Short.MAX_VALUE)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 180, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(projectNameLabel)
                        .add(projectDescriptionLabel)
                        .add(projectNameTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE))
                    .add(projectGoalLabel)
                    .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 180, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(numberOfSessLabel)
                    .add(numberOfSessionsDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(35, 35, 35)
                .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(33, 33, 33)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(projectUsersLabel)
                    .add(projectLeaderLabel)
                    .add(addProjectUsersButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 109, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(chosenUsersLabel)
                    .add(projectLeaderDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jScrollPane4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 178, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(nextButton)
                    .add(removeUserButton))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 415, Short.MAX_VALUE)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(projectLeaderLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(projectLeaderDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(projectUsersLabel)
                        .add(8, 8, 8)
                        .add(addProjectUsersButton)
                        .add(18, 18, 18)
                        .add(chosenUsersLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jScrollPane4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 163, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(removeUserButton)
                        .add(18, 18, 18)
                        .add(nextButton))
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator1)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                            .add(projectNameLabel)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(projectNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(projectDescriptionLabel)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 99, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(projectGoalLabel)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 99, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(numberOfSessLabel)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(numberOfSessionsDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void nextButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextButtonActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_nextButtonActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton addProjectUsersButton;
    private javax.swing.JList addedUsersList;
    private javax.swing.JLabel chosenUsersLabel;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton nextButton;
    private javax.swing.JLabel numberOfSessLabel;
    private javax.swing.JComboBox numberOfSessionsDropDown;
    private javax.swing.JTextArea projectDescTextArea;
    private javax.swing.JLabel projectDescriptionLabel;
    private javax.swing.JLabel projectGoalLabel;
    private javax.swing.JTextArea projectGoalTextArea;
    private javax.swing.JComboBox projectLeaderDropDown;
    private javax.swing.JLabel projectLeaderLabel;
    private javax.swing.JLabel projectNameLabel;
    private javax.swing.JTextField projectNameTextField;
    private javax.swing.JLabel projectUsersLabel;
    private javax.swing.JButton removeUserButton;
    // End of variables declaration//GEN-END:variables

}
